﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imagine;
using Microsoft.Xna.Framework;

namespace Carmack
{
    class Turret : GameObject, /*ICreate,*/ IListener
    {
       public struct Turretheader //: DataHeader
        {
            int pos;
        }
        public Turret()
        {
            Flags = Flags | (byte)eGameObjectType.Interactable;
        }

        public override bool Update(GameTime time)   {return true;}
        public override bool Draw(GameTime time)     {return true;}
        public bool Listen(object data)
        {
            if( (bool)data )
                return true;
            else
                return false;
        }

        public GameObject Create(Turretheader data)
        {
            return new Turret();
        }
    }
}
